const mongoose = require('mongoose')
const schema = new mongoose.Schema({
  username: {
    type: String
  },
  token: {
    type: String
  },
  name: {
    type: String
  },
  avatar: {
    type: String
  },
  rights:[{
    type:String
  }]
},{
  timestamps:true
})

module.exports = mongoose.model('UserInfo', schema)